package com.yuw.control.common;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 本Control主要是跳转到Web-Info目录下的页面的作用
 */
@WebServlet("/JumpU")
public class JumpU extends HttpServlet {
	private static final long serialVersionUID = 1L;

	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		// 进入查询页面之前清理session中缓存的之前的查询结果
		// 清空session缓存中的查询结果集（如果有的话）
		request.getSession().removeAttribute("lstQueryUserInfos");
		
		
		// 进行页面跳转
		// 获取表单参数
		String pg = request.getParameter("pg");
		// 跳转到页面pg
		request.getRequestDispatcher(pg).forward(request, response);

	}

}
